package Abstract;
/*
 * 基础班老师、就业班老师
 * 		共性：
 * 			属性 姓名 年龄 性别
 * 			行为：讲课， 唱歌
 */
public class AbstractTest {
	public static void main(String[] args) {
		BasiTeacher bt = new BasiTeacher();
		bt.name = "张三";
		bt.teach();
		
		JobTeacher jb = new JobTeacher();
		jb.name = "苍老师";
		jb.teach();
	}
}

abstract class Teacher {
	String name;
	int age;
	String gender;
	
	public abstract void teach();
}

class BasiTeacher extends Teacher {

	@Override
	public void teach() {
		// TODO Auto-generated method stub
		System.out.println(name + "讲基础班课程");
	}
	
}

class JobTeacher extends Teacher {

	@Override
	public void teach() {
		// TODO Auto-generated method stub
		System.out.println(name + "讲就业班课程");
		
	}
	
}